package com.yun.test.circularDependency.generalProcess;

import org.jetbrains.annotations.NotNull;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @author EDZ
 */
public class MyCondition implements Condition {
 
    @Override
    public boolean matches(ConditionContext context, @NotNull AnnotatedTypeMetadata metadata) {
		System.out.println("条件不满足不会注入");
        return false;

        //return true;
    }
}